package com.situ.pattern.observer2;

import java.util.Observable;

public class NewsPaper extends Observable {
    //报纸内容
    private String content;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
        setChanged();
        notifyObservers();
    }
}
